package com.springcloud.alibaba.service;

import com.springcloud.configclient.commons.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping(value = "/storage/decrese")
    public CommonResult decreseStorage(@RequestParam("productId") long productId, @RequestParam("count") Integer count);


}
